package com.huluobo.lib_http

/**
 *  Created by LC on 2025/3/13.
 */
object Const {
    const val BASE_URL = "http://39.104.238.234:8081"
    const val PARAM_TOKEN = "ferioatoken"

    const val PARAM_IS_IN = "isIn"

    //在线应用相关
    const val URL_GET_APPS = "/api/sysapp/all"

    //文档相关
    const val URL_GET_DOCUMENT = "/api/resource/all"
    const val URL_UPLOAD_DOCUMENT = "/api/file/uploadimg"
    const val PARAM_FILE = "file"

    //日志相关
    const val URL_GET_REPORT = "/api/oaworklog/all"
    const val URL_ADD_REPORT = "/api/oaworklog/save"
    const val PARAM_TITLE = "title"
    const val PARAM_CONTENT = "content"

    //签到相关
    const val URL_GET_SIGN = "/api/clock/page"
    const val PARAM_SIGN_IN = "signIn"
    const val PARAM_SIGN_OUT = "signOut"
    const val PARAM_SIGN_LAT = "lat"
    const val PARAM_SIGN_LON = "lon"
    const val PARAM_SIGN_TYPE = "type"
    const val PARAM_SIGN_STATUS = "status"
    const val PARAM_SIGN_ADDRESS = "address"
    const val URL_ADD_SIGN = "/api/clock/save"
    const val PARAM_SIGN_PAGE = "page"
    const val PARAM_SIGN_LIMIT = "limit"

    //登录相关
    const val PARAM_LOGIN_USERNAME = "username"
    const val PARAM_LOGIN_PASSWORD = "password"
    const val PARAM_LOGIN_ROLE = "role"

    //员工相关
    const val PARAM_ADD_EMPLOYEE_NAME = "name"
    const val PARAM_ADD_EMPLOYEE_NO = "no"
    const val PARAM_ADD_EMPLOYEE_PHONE = "phone"
    const val PARAM_ADD_EMPLOYEE_DID = "did"
    const val PARAM_ADD_EMPLOYEE_PID = "pid"
    const val PARAM_ADD_EMPLOYEE_P_NAME = "pname"
    const val URL_ADD_EMPLOYEE = "/api/staff/save"

    //登录相关
    const val PARAM_U_NAME = "uname"
    const val PARAM_U_PASSWORD = "upass"
    const val URL_LOGIN = "/api/user/login"

    //请假相关
    const val URL_ADD_APPROVE = "/api/leave/save"
    const val PARAM_APPROVE_TYPE = "type"
    const val PARAM_APPROVE_START_TIME = "startTime"
    const val PARAM_APPROVE_END_TIME = "endTime"
    const val PARAM_APPROVE_HOURS = "hours"
    const val PARAM_APPROVE_REASON = "reason"
    const val URL_GET_APPROVE = "/api/leave/all?status=1"

}